package com.zmovie.framework.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;

import com.zmovie.framework.domain.Movie;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author lenovo
* @description 针对表【movie】的数据库操作Mapper
* @createDate 2023-11-30 12:28:08
* @Entity com.zmovie.framework.domain.Movie
*/
public interface MovieMapper extends BaseMapper<Movie> {
    /**
     * 正在热映(当前时间前2月到目前，cnt)
     * @param cnt 取cnt个
     */
    List<Movie> listMovieOnScreen(Integer cnt);
    /**
     * 即将上映(大于当前日期的)
     * @param cnt 取cnt个
     */
    List<Movie> listMovieUpcoming(Integer cnt);

    /**
     * 经典电影(小于当期日期的)
     * @param cnt 取cnt个
     */
    List<Movie> listMovieClassical(Integer cnt);
}




